package jmine.tec.services.utils.replace.transformation;

import jmine.tec.services.utils.replace.api.ServiceBlock;
import jmine.tec.services.utils.replace.api.ServiceRow;

/**
 * @author lundberg
 */
public abstract class AbstractAddParameterTransformation extends AbstractTransformation {

    private String parameter;

    public AbstractAddParameterTransformation(String action, String name, String parameter) {
        super(action, name);
        this.parameter = parameter;
    }

    public void apply(ServiceBlock block) {
        block.addParameter(this.parameter);
    }

    protected abstract String getContent(ServiceRow row);
}
